﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using IankerProj.Models;

namespace IankerProj.Controllers
{
    public class SupportController : Controller
    {
        AnkerDBEntities db = new AnkerDBEntities();
        //
        // GET: /Support/

        public ActionResult Index()
        {
            var c = db.Thietbis.Where(p => p.idcha == 1 || p.idcha == 2 || p.idcha == 3 || p.idcha == 4).ToList();
            return View(c);
        }
        public ActionResult thietbidetail(int id)
        {
            var p = db.Thietbis.Where(c => c.idcha == id);
            return View(p);
        }

    }
}
